package org.springblade.modules.ehb.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.modules.ehb.mapper.EhbAwardCorporateMapper;
import org.springblade.modules.ehb.service.IEhbAwardCorporateService;
import org.springblade.modules.ehb.vo.EhbAwardCorporateVO;
import org.springblade.modules.enterprise.entity.AwardCorporate;
import org.springframework.stereotype.Service;

@Service
public class EhbAwardCorporateServiceImpl extends BaseServiceImpl<EhbAwardCorporateMapper, AwardCorporate> implements IEhbAwardCorporateService {

	@Override
	public IPage<EhbAwardCorporateVO> selectAwardCorporatePage(IPage<EhbAwardCorporateVO> page, Integer status) {
		return page.setRecords(baseMapper.selectAwardCorporatePage(status, page));
	}

	@Override
	public Long countSubsidyCost() {
		return baseMapper.countSubsidyCost();
	}
}
